package com.csp.mingyue.system.api.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 路由配置信息
 *
 * @author Strive
 */
@Data
@Schema(description = "路由配置信息")
@NoArgsConstructor
public class RouterVo {

	@Schema(description = "菜单路径，用于跳转")
	private String path;

	@Schema(description = "菜单 name，用于界面 keep-alive 路由缓存。 此 name 需要与 component 组件中的 name 值相同（唯一）")
	private String name;

	@Schema(description = "组件路径")
	private String component;

	@Schema(description = "菜单重定向路径")
	private String redirect;

	@Schema(description = "附加自定义数据")
	private MetaVo meta;

	@Schema(description = "子路由")
	private List<RouterVo> children;

}
